package Teacher;

public class Student extends Person {
    private double score;

    public Student(String id, String name, double score) {
        super(id, name);
        this.score = score;
    }

    public double getScore() { return score; }
    public void setScore(double score) { this.score = score; }

    @Override
    public void showInfo() {
        super.showInfo();
        System.out.println("身份：学生，成绩：" + score + "分");
    }
}